package com.freaky.jx3.mjb;

import android.R.integer;
import android.R.string;

public class BaseConstant {
	// 常量设置
	public static double modulus2v2 = 0.8;
	public static double modulus3v3 = 0.9;
	public static double modulus5v5 = 1.0;

	// 名剑币计算公式
	public static int mjbCalculate(int teamFraction, double modulus) {
		double fraction = 0;
		if (teamFraction < 800) {
			fraction = modulus * 4 * (650 * teamFraction + 2337500) / 10000;
		} else if (teamFraction > 3099) {
			fraction = modulus * 4 * (195 * teamFraction + 12555500) / 10000;
		} else {
			fraction = modulus
					* 4
					* (1238400
							* (teamFraction - 1900)
							/ ((teamFraction - 1900) * (teamFraction - 1900) + 1440000) + 800);
		}
		return (int) fraction;

	}

	// 中间变量
	public static String num2v2;
	public static String num3v3;
	public static String num5v5;
	public static String mjbnum;
	public static String result;
	public static String show;
	
	

}
